<?php
	$css_list[0]['url'][] = './tpl/css/article.css';
	$css_list[0]['url'][] = './tpl/css/note.css';
?>
<!--{template inc/header_n}-->
<div class="main_warp">

    <div class="i_inner">
        <p style="text-align:left;">当前位置：<a href="/shopinfo.php?action=index&cate={$parentcate['cate_id']}">{$parentcate['cate_name']}</a> > <a href="/shopinfo.php?action=index&cate={$currcate['cate_id']}">{$currcate['cate_name']}</a></p>
        <div class="product_view">

            <div class="i_lefter">
                <div class="i_title">
                    {if $anli}
                    <b>¥ {if $anli['price2']>0}{$anli['price2']}{else}{$anli['price']}{/if}</b>
                    {/if}
                    <h3>{$share_detail['name']}</h3>
                    <br class="g_clear" />
                   <div class="j_time">
                    店铺：<a href="{u shopinfo/show id=$share_detail['id']}">{$share_detail['name']}{if $share_detail['uid'] > 0}&nbsp;<img border="0" style="vertical-align:middle;" src="/public/medal/small/v{$share_detail['v2']}.jpg"/>{elseif $share_detail['show_v2']>0}&nbsp;<img border="0" style="vertical-align:middle;" src="/public/medal/small/v{$share_detail['show_v2']}.jpg"/>{/if}</a>
                    {if !empty($share_detail['telphone'])}&nbsp;&nbsp;&nbsp;联系电话：{$share_detail['telphone']}{if !empty($share_detail['telphone2'])} | {$share_detail['telphone2']}{/if}{/if}
                    {if !empty($share_detail['mobile'])}&nbsp;&nbsp;&nbsp;手机号码：{$share_detail['mobile']}{if !empty($share_detail['mobile2'])} | {$share_detail['mobile2']}{/if}{/if}
                    &nbsp;&nbsp;&nbsp;地区：{$share_detail['province_show']}{$share_detail['city_show']}
                    <a w="f" href="javascript:;" class="fw ed" onclick="jubao($share_detail['id']);">举报</a>
                    <br/>地址：{$share_detail['address']}
                    </div>
                </div>
                
                {if $anli}
                <div class="btn-buy">
                    <a href="/article.php?action=buy&id={$anli['id']}">立即购买(支付宝)</a>
                    <a href="/article.php?action=buy&id={$anli['id']}&paytype=1">立即购买(银联)</a>
                </div>
                <img src="/public/v1/img/buytip.png" title="提示提示"/>
                {/if}

                <div class="i_content">
                    {if !$anli}
                    <img src="/public/v1/img/talktoshop.png" title="提示提示">
                    {/if}
                    {$share_detail['content']}
                </div>


            </div>

            <div class="i_righter">
            <!--{template inc/u/u_me_right}-->
            </div>

            <div class="g_clear"></div>
        </div>
        
        
        <div class="i_notice">
            <div class="j_title">公告栏</div>
            <div class="j_list">
                <ul>
             <li><a href="#"><b>婚礼款项建设银行冻结监管</b></a></li>
             <li><a href="#"><b>真实新人评价（新人凭婚宴发票进行评价）</b></a></li>
             <li><a href="#"><b>没有中间商赚差价</b></a></li>
                </ul>
            </div>
        </div>
    </div>

</div>
<!--{template inc/footer}-->
<script type="text/javascript" src="/public/js/TextAreaTip.js"></script>
<script type="text/javascript">
function UpdateUserFollow(obj,result)
{
	if(result.status == 1)
	{
		$(obj).before('<img class="fo_ok" src="./tpl/images/add_ok_03.png">');
		$(obj).remove();
	}
}

jQuery(function(){
	CommentInit();
});

function CommentInit()
{
	$(".note_comment .pagination a").click(function(){
		var page = $(this).attr('page');
		$.Get_Shopinfo_Comment("{$share_detail['id']}",page,'#SHARE_COMMENT_LIST_BOX',CommentInit);
		return false;
	});
}

function myshare() {
	if(!$.Check_Login())
		return false;

    var module = 'share';
    var action =  'save';
	var url = SITE_PATH + 'services/service.php?m=' + module + '&a=' + action;
	$.ajax({
		url: url,
		type: "POST",
		data: {
		    'module' : module,
		    'action' : action,
		    'content' : '{$share_detail['name']}',
		    'albumid' : 0,
		    'mytype' : 'shopinfo',
		    'id' : {$share_detail['id']},
		    'pic' : '{$share_detail['img']}'
		},
		cache:false,
		dataType: "json",
		success:function(result){
			if(result.status == 1)
			{
                alert('分享成功！');
			}
			else
			{
				if(result.error_msg)
					alert(result.error_msg);
				else
					alert(LANG.pub_share_tip1);
			}
		},
		error:function(){
			alert(LANG.pub_share_tip1);
		}
	});
}

function jubao(id) {
    {if $_FANWE['uid']}
    if(window.confirm('确定举报吗？')) {
        $.get('/shopinfo.php?action=jb&id='+id, function(s) {
            alert(s);
        });
    }
    {else}
    alert('请先登陆！');
    {/if}
}

var ttTips=textAreaTips("content");
ttTips.start();
ttTips.bind();
</script>
